package mail.bean;

import java.io.IOException;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;

import javax.mail.MessagingException;
import javax.mail.Multipart;

public class EmailBean implements Serializable{
	private String sender;
	private Date sendDate;
	private String subject;
	private String size;
	private Date receiveDate;
	private String receiver;
	private String content;
	private String contentType;
	private String uid;
	private HashMap<String, String> attach = new HashMap<String, String>();
	
	public HashMap<String, String> getAttach() {
    return attach;
  }
  public void setAttach(HashMap<String, String> attach) {
    this.attach = attach;
  }
  public String getUid() {
    return uid;
  }
  public void setUid(String uid) {
    this.uid = uid;
  }
  public String getContent() {
    return content;
  }
  public void setContent(String content) {
    this.content = content;
  }
  public String toString() {
    return new StringBuilder(subject).append(":").append(sender).append(":").append(
				size).append(":").append(receiveDate).append(":").append(content).toString();
	}
	public Date getReceiveDate() {
		return receiveDate;
	}
	public void setReceiveDate(Date receiveDate) {
		this.receiveDate = receiveDate;
	}
	public String getSender() {
		return sender;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	public String getSize() {
		return size;
	}
	public void setSize(String size) {
		this.size = size;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
  public String getContentType() {
    return contentType;
  }
  public void setContentType(String contentType) {
    this.contentType = contentType;
  }
  public Date getSendDate() {
    return sendDate;
  }
  public void setSendDate(Date sendDate) {
    this.sendDate = sendDate;
  }
}
